<template>
  <el-dialog
    :title="dialogTitle"
    :visible.sync="showDialog"
    class="dialog-big"
    :close-on-click-modal="false"
  >
    <el-row class="dialong-content">
      这是自定义的内容
    </el-row>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="submitForm('form')">确 定</el-button>
      <el-button @click="showDialog = false">取 消</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: 'CustomDialog',
  props: {

  },
  data() {
    return {
      dialogTitle: '自定义内容弹框',
      form: {
        widthType: 'num'
      },
      showDialog: false
    }
  },
  computed: {
  },
  mounted() {
  },
  methods: {
    init(row) {
      this.showDialog = true
      if (row.pid) {
        // 调用接口
        // this.getById(row.pid)
        return
      }
      //   初始化
      this.form = {
        width: 12,
        height: '200',
        defaultFlag: 0,
        widthType: 'num'
      }
    },
    // 编辑的回显
    getById(compId) {

    },
    submitForm(formName) {

    }
  }
}
</script>

<style lang="scss" scoped>

</style>
